<?php 
	echo '<div id="error">';
	echo '<ul>';
		if(isset($errors['name']) && isset($errors['surname'])) { 
			$errors['fullName'] = 'Nome e cognome non validi!';
			echo '<li>' . $errors['fullName'] . '</li><br />'; 
		}else{
			if(isset($errors['name'])) { 
				echo '<li>' . $errors['name'] . '</li><br />';
			}if(isset($errors['surname'])){ 
				echo '<li>' . $errors['surname'] . '</li><br />'; 
			}
		}if(isset($errors['email'])){ 
			echo '<li>' . $errors['email'] . '</li><br />'; 
		}if(isset($errors['password'])){ 
			echo '<li>' . $errors['password'] . '</li><br />'; 
		}if(isset($errors['rule'])){ 
			echo '<li>' . $errors['rule'] . '</li><br />'; 
		}
	echo '</div>';
	echo '</ul>';
?>